import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)

const routes = [
  {
    path:"/",
    redirect:"/first"
  },
  {
    path:"/first",
    name:"First",
    component: ()=> import('../views/gmFirst.vue'),
  },
  {
    path:"/channel",
    name:"Channel",
    component: ()=> import('../views/gmChannel.vue'),
  },
  {
    path:"/channelList/:id",
    name:"ChannelList",
    component: ()=> import('../pages/channelList.vue'),
  },
  {
    path:"/behind",
    name:"Behind",
    component: ()=> import('../views/gmBehind.vue'),
  },
  {
    path:"/topic",
    name:"Topic",
    component: ()=> import('../views/gmTopic.vue'),
  },
  {
    path:"/activity",
    name:"Activity",
    component: ()=> import('../views/gmActivity.vue'),
  },
  {
    path:"/diy",
    name:"Diy",
    component: ()=> import('../views/gmDiy.vue'),
  },


  {
    path:"/video",
    name:"Video",
    component: ()=> import('../pages/gmVideo.vue')
  },
  {
    path:"/login",
    name:"Login",
    component: ()=> import('../pages/gmLogin.vue')
  },
  {
    path:"/search",
    name:"Search",
    component: ()=> import('../pages/gmSearch.vue')
  },
  {
    path:"/user",
    name:"User",
    component: ()=> import('../pages/gmUserinfo.vue')
  },
  {
    path:"/demo",
    component: ()=> import('../views/demo.vue')
  }
]

const router = new VueRouter({
  routes
})

export default router
